﻿@model BrnMall.Web.StoreAdmin.Models.OpenAgentListModel
@section header{
    <title>用户列表</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}

@section body{
    <h1 class="rightH1 nav-fx">
        小程序分销 &gt; 代理管理 &gt; <span class="rightH1-cur">代理商开通</span>

        <div class="clear"></div>
    </h1>
    @using (Html.BeginForm("OpenAgent", "Distributor"))
    {
        <div class="dataListSearch">
            <table height="32">
                <tbody>
                <tr>
                    <td style="width:26%;">
                        用户名： @Html.TextBox("UserName", Model.UserName, new { height = "18" })
                    </td>        
                    <td>
                        <input id="SearchUser" name="SearchUser" type="image" class="searchBut submit" style="float:left;" src="/admin_store/images/s.jpg" />
                    </td>
                </tr>
                </tbody></table>
        </div>

        <div class="dataList">
            <table width="100%">
                <thead>
                <tr>
                    <th width="5%"></th>
                    <th width="10%" align="left">编号</th>
                    <th width="7%" align="left">头像</th>
                    <th width="20%" align="left">用户名</th>
                    <th width="20%" align="left">昵称</th>
                    <th width="8%" align="left">支付积分</th>
                    <th width="20%" align="left">注册访问</th>
                    <th width="10" align="left">操作</th>
    
                </tr>
                </thead>
                <tbody>
                @foreach (DataRow row in Model.UserList.Rows)
                {
                    <tr>
                        <td></td>
                        <td>@row["uid"]</td>
                        <td><img src="@row["avatar"]" style="border-radius: 25px;" width="50" height="50" alt="" /> </td>
                        <td>@row["username"]</td>
                        <td>@row["nickname"]</td>
                        <td>@row["paycredits"]</td>
                        <td>@row["registertime"]<br />@row["lastvisittime"]</td>
                        <td>
                            @Html.ActionLink("开通代理商", "OpenUserAgent", new { userId = @row["uid"] }, new { @class = "editOperate" })
                        </td>
    
                    </tr>
                }
                </tbody>
            </table>
        </div>
        <div class="dataListEdit">
            <div class="page">
                @Html.StoreAdminPager(Model.PageModel)
            </div>
        </div>
    }
}